package com.crm.model;

import java.util.List;

public class SysDepartment extends BaseModel{

    @Override
	public boolean equals(Object obj) {
		
    	if(obj instanceof SysDepartment){
    		SysDepartment e = (SysDepartment)obj;
    		return e.getDepartmentId().equals(this.departmentId);
    	}
    	
		return false;
	}
	
    private String departmentId;
    
    private String fullPath;

    private String companyId;

    private String parentId;//上级部门
    
    private String parentName;

    private String code;//编号

    private String fullName;

    private String shortName;//简称

    private String description;

    private String province;

    private String city;

    private String area;

    private String address;
    
    private Integer type;
    
    private List<SysDepartment> childs;
    
    private Integer isLeaf;
    
    public Integer getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}

	public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    
    public String getFullPath() {
		return fullPath;
	}

	public void setFullPath(String fullPath) {
		this.fullPath = fullPath;
	}

	public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    
    public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public List<SysDepartment> getChilds() {
		return childs;
	}

	public void setChilds(List<SysDepartment> childs) {
		this.childs = childs;
	}

    
}